#pragma once
#include <d3dx9.h>
#include "Windows.h"
#define MAX_QUADS_TO_RENDER 10000
#define NUM_VERTICES_IN_QUAD 6
struct Quad
{
    D3DXVECTOR3 pos;
    DWORD color;
	float QSize;
};
class cMain;
class cQuadRenderer
{
	cMain & Main;
	LPDIRECT3DVERTEXBUFFER9 g_pVB;
	Quad Quads[MAX_QUADS_TO_RENDER];
	int NumQuadsToRender;

public:

	cQuadRenderer(cMain & Main);
	~cQuadRenderer();
	void Restart();
	void Render();
	void AddQuadToRender(D3DXVECTOR3 Pos, DWORD color, float QSize);
};